package com.example.module_home.network

import com.example.module_home.ArticleData
import com.example.module_home.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Path

interface ApiService {

    @GET("posts")
    suspend fun fetchPost(): List<PostEntity>

    @GET("albums")
    suspend fun fetchAlbum(): List<AlbumEntity>


    @GET("article/list/{page}/json")
    suspend fun fetchArticle(@Path("page") page: Int): BaseResponse<ArticleData>

}